/*
 * Plane.h
 *
 *  Created on: Feb 9, 2010
 *      Author: dcrown
 */

#ifndef PLANE_H_
#define PLANE_H_

#include "..\Includes\Common.h"
#include "..\Graphics\Texture.h"
#include "..\Graphics\Sprite.h"

class Plane
{
public:
	Plane() {}
	virtual ~Plane() {}

	void Clear() {};
	void Create(int x, int y);
	void Destroy();// {}

	void Move(Direction d) {heading = d;}
	void Fire() {firingStage = 1;}
	void Update();
	void Render();

	int GetXPos() {return centerXPos;}
	int GetYPos() {return centerYPos;}

private:

	void AdjustBounds();

	int centerXPos, centerYPos;
	int imageXPos, imageYPos;
	Direction heading;
	int firingStage;
	Texture* texture;//, *firingTexture;
	Texture* firingTexture;
	Sprite* sprite;
};

#endif /* PLANE_H_ */
